<?php
// 分组模型
class GroupModel extends CommonModel {
	public $_validate	=	array(
        //array('account','/^[a-z]\w{3,}$/i','帐号格式错误'),
        array('group_name','require','分组名称必须'),
        array('group_name','','分组名称已经存在',self::EXISTS_VALIDATE,'unique',self::MODEL_INSERT),
        array('group_name','1,10','分组名称长度1-10个字',self::EXISTS_VALIDATE,'length',self::MODEL_INSERT),
        );

    public $_auto =	array(
        array('create_time','time',self::MODEL_BOTH,'function'),
        );
}
?>